angular.module('jie', ['ionic'])

    .controller('MainController', function ($scope) {

        if(document.cookie.length > 0){
            $scope.me = "我";
        }else{
            $scope.me = "登录";
        }


        $scope.editContent = function () {
            window.location.href = "/jie/edit";
        };

        $scope.meFuc = function () {
            if($scope.me == "我"){
                window.location.href = "/jie/me";
            }else{
                window.location.href = "/jie/login";
            }
        };
    });